Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#6306] NamedPipe could not reconnect correctly when disconnected unexpectedly #6416

Merged
merged 5 commits into from
Jul 15, 2022

Conversation

ceciliaavila
Copy link
Collaborator

@ceciliaavila ceciliaavila commented Jul 13, 2022

Fixes #6306

Description

This PR adds a loop in the CloudAdapter's ConnectNamedPipeAsync method to keep the connection alive in case of failures

Specific Changes

  • Updated ConnectNamedPipeAsync method adding a loop while _streamingConnections property is empty.

Testing

Here we have two Webchat clients connecting with an echo bot through DL-ASE.
The second client is able to connect with the server after it failed on the first client and reconnected.
image

@ceciliaavila ceciliaavila added the Automation: No parity PR does not need to be applied to other languages. label Jul 13, 2022
@ceciliaavila ceciliaavila requested a review from a team as a code owner July 13, 2022 20:21
@msomanathan msomanathan self-requested a review July 13, 2022 20:28
@BruceHaley
Copy link
Contributor

✔️ No Binary Compatibility issues for Microsoft.Bot.Builder.Integration.AspNet.Core.dll

Copy link
Contributor

@msomanathan msomanathan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could the changes be confined to within CloudAdapter in order to minimize the surface area being changed? Thanks!

@BruceHaley
Copy link
Contributor

✔️ No Binary Compatibility issues for Microsoft.Bot.Builder.Integration.AspNet.Core.dll

@BruceHaley
Copy link
Contributor

✔️ No Binary Compatibility issues for Microsoft.Bot.Builder.Integration.AspNet.Core.dll

@msomanathan msomanathan merged commit 55496e8 into main Jul 15, 2022
@msomanathan msomanathan deleted the southworks/fix/named-pipe-reconnect branch July 15, 2022 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Automation: No parity PR does not need to be applied to other languages.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NamedPipe could not reconnect correctly when disconnected unexpectedly
3 participants